﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web.Admin
{
    public partial class TestCard : System.Web.UI.Page
    {
        public string strid = ""; 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int IndID = (Convert.ToInt32(strid));
                    ShowInfo(IndID);
                }
              
            }

          
        }
        private void ShowInfo(int IndID)
        {
            Maticsoft.BLL.studentInfo bll = new Maticsoft.BLL.studentInfo();
            DataSet ds = bll.Getsturoom(" and stuid=" + IndID);
            if (ds.Tables[0].Rows.Count == 1)
            {
                //Maticsoft.Model.studentInfo model = bll.GetModel(IndID);
                this.lblIndName.Text = ds.Tables[0].Rows[0]["stuname"].ToString();
                this.lblIndSex.Text = ds.Tables[0].Rows[0]["stusex"].ToString();
                this.lblIndIdnumber.Text =ds.Tables[0].Rows[0]["stuNum"].ToString();
                this.lblIndNation.Text =ds.Tables[0].Rows[0]["stuType"].ToString();

                this.lblIndWord.Text =ds.Tables[0].Rows[0]["stuAddress"].ToString();
                // this.lblIndFile.Text = model.IndFile; 
                this.img.ImageUrl =".."+ds.Tables[0].Rows[0]["stuPic"].ToString();
                this.lblIndDivision.Text = ds.Tables[0].Rows[0]["examRoomAddress"].ToString();
                this.lblIndPlace.Text = ds.Tables[0].Rows[0]["examRoomName"].ToString();
                this.lblIndTime.Text = ds.Tables[0].Rows[0]["examRoomTime"].ToString();
            }

         }


       
    }
}